package io.stream;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.file.Files;
import java.nio.file.Paths;

public class TestNIO {



    public  static  void  main(String []args) throws IOException {
        Files.copy(Paths.get("rs/a.txt"),new FileOutputStream("aa.txt"));

        start();
    }

    public static void  start() throws IOException {
        ServerSocketChannel serverSocketChannel=ServerSocketChannel.open();
        SocketChannel socketChannel= serverSocketChannel.accept();
    }
}
